<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
include('funcion.inc');
conecta();
$sql="SELECT * FROM categorias ORDER BY NOMBRE ASC";
$cons=mysql_query($sql);
while($row=mysql_fetch_array($cons)){
    echo '<li><a href="listas.php?funcion=1&cat='.$row[1].'" alt="'.$row[1].'">'.utf8_encode($row[2]).'</a></li>';
}
    mysql_free_result($cons);
?>
